package com.yumis.service.model.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "yk_car_parts")
@Data
public class CarParts {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    /**
     * 配件名称
     */
    private String name;

    /**
     * 售价
     */
    private Integer price;

    /**
     * 品牌
     */
    private String brand;

    private Integer createTime;

    private Integer updateTime;

    /**
     * 状态：0在售；1停售
     */
    private Boolean state;

    private Long shopId;
}